function [det] = LoadDetectorInfo(detName, det, gmstRad)

switch detName
	case {'H1'}
		long		= -2.08405676917;
		lat		= 0.81079526383;
		elevation	= 142.554;
		Ax		= -6.195e-4;
		PsiX		= 324.0006*pi/180.0;
		Ay		= 1.25e-5;
		PsiY		= 234.0006*pi/180.0;

	case {'L1'}
		long		= -1.58430937078;
		lat		= 0.53342313506;
		elevation	= -6.574;
		Ax		= -3.121e-4;
		PsiX		= 252.2835*pi/180.0;
		Ay		= -6.107e-4;
		PsiY		= 162.2835*pi/180.0;

	case {'V1'}
		long		= 0.18333805213;
		lat		= 0.76151183984;
		elevation	= 51.884;
		Ax		= 0;
		PsiX		= 19.4326*pi/180.0;
		Ay		= 0;
		PsiY		= 289.4326*pi/180.0;

	case {'T1'}
		long		= [139 32 9.8]*[1; 1/60; 1/3600]*pi/180; 
		lat		= [35 40 35.6]*[1; 1/60; 1/3600]*pi/180;
		elevation	= 90.0;
		Ax		= 0;
		PsiX		= 270*pi/180.0;
		Ay		= 0;
		PsiY		= 180*pi/180.0;

	case {'I1'}
		
		if ~isfield(det, 'long')
			long	= [77 38 00]*[1; 1/60; 1/3600]*pi/180; % Bangalore
		else
			long	= det.long;
		end
		
		if ~isfield(det, 'lat')
			lat	= [12 58 00]*[1; 1/60; 1/3600]*pi/180; % Bangalore
		else
			lat	= det.lat;
		end
		
		if ~isfield(det, 'elevation')
		 	elevation	= 920.0;
		else
			elevation	= det.elevation;
		end
		
		if ~isfield(det, 'PsiX')
			PsiX	= 0;
		else
			PsiX	= det.PsiX;
		end
		
		Ax		= 0;
		Ay		= 0;
		PsiY		= mod(PsiX + pi/2, 2*pi);

	otherwise
		display('Unknown detector name')
end

lmst		= mod((gmstRad + long), (2*pi));
xArm		= getArm(PsiX, Ax, long, lat);
yArm		= getArm(PsiY, Ay, long, lat);
detTensor	= 0.5*(xArm'*xArm - yArm'*yArm);

[ah, bh]	= CalculateDetPosDepCoeffs(PsiX, PsiY, lat);

% Pack everything into det
det.long	= long;
det.lat		= lat;
det.elevation	= elevation;
det.Ax		= Ax;
det.PsiX	= PsiX;
det.Ay		= Ay;
det.PsiY	= PsiY;
det.lmst	= lmst;
det.xArm	= xArm;
det.yArm	= yArm;
det.detTensor	= detTensor;
det.ah		= ah;
det.bh		= bh;

return;




	


